package com.example.elm_server_api.mapper;

import com.example.elm_server_api.domain.FoodCategory;

import java.util.List;

/**
* @author 啦啦啦
* @description 针对表【food_category(商家的食物分类)】的数据库操作Mapper
* @createDate 2022-07-18 15:34:04
* @Entity com.example.elm_server_api.domain.FoodCategory
*/
public interface FoodCategoryMapper {

    int deleteByPrimaryKey(Long id);

    int insert(FoodCategory record);

    //单表 商铺添加自己的食物分类
    int insertFoodCateSelective(FoodCategory record);

    FoodCategory selectByPrimaryKey(Long id);

    List<FoodCategory> selectByShopId (Long id);

    //多表 食物与分类的查询
    List<FoodCategory> selectFoodAndCate (Long id);

    int updateByPrimaryKeySelective(FoodCategory record);

    int updateByPrimaryKey(FoodCategory record);

}
